home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-26 | 647 b | 24 lines | [TEXT/MPS ] |
- =head1 NAME
-
- Socket - load the C socket.h defines
-
- =head1 SYNOPSIS
-
- use Socket;
-
- $proto = (getprotobyname('udp'))[2];
- socket(Socket_Handle, PF_INET, SOCK_DGRAM, $proto);
-
- =head1 DESCRIPTION
-
- This module is just a translation of the C F<socket.h> file.
- Unlike the old mechanism of requiring a translated F<socket.ph>
- file, this uses the B<h2xs> program (see the Perl source distribution)
- and your native C compiler. This means that it has a
- far more likely chance of getting the numbers right.
-
- =head1 NOTE
-
- Only C<#define> symbols get translated; you must still correctly
- pack up your own arguments to pass to bind(), etc.
-